package pack0629.cn;

public class Person {
    public void walk(Animal an){
        an.run();
        an.sleep();
    }

    public static void main(String[] args) {
        Person p=new Person();
        p.walk(new Snake());

        Animal an=new Dog();
        an.run();
    }
}
